#ifndef __HANDLE_H__
#define __HANDLE_H__

#include <stdio.h>
#include <dirent.h>
#include <ctype.h>
#include "app_log.h"
#include "tcp_client.h"
#include "cli.h"

int checkinput(char *buf,int mode);
int checkinput_num(int i);
int  verify_account(char * buf);
int  verify_password(char* buf);
int verify_domain(char* buf);
int get_list(int mode);
void get_status(void);
void search_text(void);
char* display_subjects();
void displaybysubjects();
int save_file(char *name,char* content);
void download_mail(void);
void prog_quit(void);
char *search_decode_content(char *buf, char *ptr);
char* search_decode_whole(char *buf, char *out);
unsigned char *base64_decode(unsigned char *code);

#endif